import Mock from "mockjs";
import banner from "./banner.json";
import floor from "./floor.json";
// import axios from "axios";

// 创建临时请求
Mock.mock("/mock/banner", "get", {
  code: 200,
  msg: "banner请求成功",
  data: banner,
});
Mock.mock("/mock/floor", "get", {
  code: 200,
  msg: "floor请求成功",
  data: floor,
});

// 用axios测试数据
// axios.get("/mock/banner").then((rep) => {
//   console.log(rep);
// });
